<?php
$caption = BUtils::T('password_change_caption_lbl');
$this->pageTitle = Yii::app()->name . ' - ' . $caption;
?>
<div class="container prepend-top append-bottom">
	<div class="span-12 prepend-5 last">
		<div class="box_white">
		<div class="biz-form">
			<div class="margin">
				<h3><?php echo $caption; ?></h3>
			</div>
<?php $form = $this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
));

if (Yii::app()->user->hasFlash('done')) { ?>
<div class="fieldswrap" style="background:#efe;">
	<div class="fields"><?php echo Yii::app()->user->getFlash('done'); ?></div>
</div>
<?php } else { ?>
<div class="fieldswrap">
<div class="fields">
	<?php echo $form->hiddenField($model,'email'); ?>
	<div class="block">
		<div class="lbl">
			<label class="required" for="LoginForm_password"><?php echo BUtils::T('password_new_lbl'); ?> <span class="required">*</span></label>
		</div>
		<div class="ipt">
			<?php echo $form->passwordField($model,'password', array('class'=>'auto')); ?>
			<?php echo $form->error($model,'password'); ?>
		</div>
	</div>
	<div class="block">
		<div class="lbl"><?php echo $form->labelEx($model,'password_repeat'); ?></div>
		<div class="ipt">
			<?php echo $form->passwordField($model,'password_repeat', array('class'=>'auto')); ?>
			<?php echo $form->error($model,'password_repeat'); ?>
		</div>
	</div>
</div><!-- end of .fields -->
</div><!-- end of .fieldswrap -->
	<div class="margin actions">
		<?php echo CHtml::submitButton(BUtils::T('confirm_btn'), array('class' => 'button button-huge button-confirm')); ?>
	</div>
<?php } ?>

<?php $this->endWidget(); ?>
			
		</div><!-- end of <div class="biz-form"> -->
		</div>
	</div>
</div>